<#assign title="">
<#assign description="">
<#assign copyright="">
<#assign company="">
<#assign author="">
<#assign since="">
package ${packageName};

/**
 * 
 * <p>Title: ${title}</p> 
 * 
 * <p>Description: ${description}</p> 
 * 
 * <p>Copyright: Copyright (c) ${copyright}</p> 
 * 
 * <p>Company: ${company}</p>
 * 
 * @author ${author}
 * @since  ${since}
 * @version 1.0
 */
import java.io.Serializable;

import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

<#foreach package in packages?if_exists>
import ${package};
</#foreach>

@Entity
@Table(name="${tableName?lower_case}")
public class ${className} implements Serializable {

	private static final long serialVersionUID = 1L;

<#foreach field in fields?if_exists>
	/**
	 * ${field.notation?if_exists}
	 */
	private ${field.type} ${field.name};

</#foreach>

<#foreach field in fields?if_exists>
<#if field.name == pkField.name>
	@Id
	@Column(name = "${field.name}", nullable = ${field.isNull})
	@GeneratedValue(strategy = GenerationType.AUTO )
<#else>
	@Column(name = "${field.name}", nullable = ${field.isNull})
</#if>
	public ${field.type} get${field.name?cap_first}(){
		return ${field.name};
	}

</#foreach>
<#foreach field in fields?if_exists>
	public void set${field.name?cap_first}(${field.type} ${field.name}){
		this.${field.name} = ${field.name};
	}
	
</#foreach>


}
